#include <iostream>

using namespace std;

int move(int num, int dp[]){
	if(num <= 1){
		dp[num] = num;
	}else{
		dp[num] = 2 * move(num-1, dp) + 1;
	}
	return dp[num];
}

int main(){
	int maxNum = 6;
	int dp[maxNum];
	int moveSum = move(maxNum, dp);
	cout << "moveSum:" << moveSum << endl;
}